package com.xd.core.business.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 客户工单关联表
 * </p>
 *
 * @author ZX
 * @since 2025-02-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ExcelIgnoreUnannotated
public class MortgagePageVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "进件单号")
    private String incomingId;

    @ApiModelProperty(value = "放款id")
    private Integer outId;

    @ExcelProperty(value = "借款订单编号")
    @ApiModelProperty(value = "借款订单编号")
    private String incomingOrder;

    @ApiModelProperty(value = "抵押id")
    private String mortgageId;

    @ExcelProperty(value = "抵押订单编号")
    @ApiModelProperty(value = "抵押订单号")
    private String orderNo;

    @ApiModelProperty(value = "抵押办理状态（0--待办理,1--办理中,2--已办理）")
    private String status;

    @ExcelProperty(value = "抵押办理状态")
    @ApiModelProperty(value = "抵押办理状态详情")
    private String statusRemark;

    @ExcelProperty(value = "产品名称")
    @ApiModelProperty(value = "进件产品")
    private String productName;

    @ExcelProperty(value = "客户姓名")
    @ApiModelProperty(value = "客户姓名")
    private String name;

    @ExcelProperty(value = "客户手机号")
    @ApiModelProperty(value = "客户手机号")
    private String phone;

    @ExcelProperty(value = "最近更新时间")
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date updateTime;

    @ExcelIgnore
    @ApiModelProperty(value = "订单状态(0--启用,1--停用)")
    private String isEnable;

    @ExcelProperty(value = "抵押物")
    @ApiModelProperty(value = "抵押物(0--房抵,1--车抵)")
    private String mortgage;

    @ExcelProperty(value = "抵押开始办理日期")
    @ApiModelProperty(value = "办理开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date createTime;

    @ExcelProperty(value = "最近更新人")
    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ExcelProperty(value = "申请提现金额")
    @ApiModelProperty(value = "申请提现金额")
    private BigDecimal outLoan;

    @ExcelProperty(value = "授信金额")
    @ApiModelProperty(value = "授信金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "借款合同")
    private String loanContract;

    @ApiModelProperty(value = "抵押合同")
    private String moContract;

    @ApiModelProperty(value = "公司id")
    private Integer companyId;

    @ApiModelProperty(value = "车或房(0--车,1--房.2--都有,3--没有)")
    private String carOrHouse;

}
